package cn.ibdsr.human.core.check;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/2 13:19
 */

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface Verfication {
    String name();

    boolean notNull() default false;

    String[] regx() default {};

    int maxlength() default 0;

    int minlength() default 0;

    boolean notEmptyList() default false;

    int min() default -2147483648;

    int max() default 2147483647;

    Class<? extends Model> forenign() default Model.class;

    Class<? extends Model> entity() default Model.class;

    String unique() default "";
}